import request from "@/config/request";
import type {BaseResult} from "../../../types/global";
import type {storeAddress} from "@/types/store";

enum API {
    root = "/system/app/store/address"
}

export const StoreAddressApi = {

    /**
     * 附近商铺列表
     */
    page: async (params: StoreAddressPageReq): Promise<BaseResult<PageResult<storeAddress>>> => {
        return request.get<BaseResult<PageResult<storeAddress>>>({
            url: `${API.root}/page`, params: params
        });
    }

}
